<?php


namespace Demo\Observe;


use SplSubject;

class Cat implements \SplObserver
{
    public function update(SplSubject $subject)
    {
        echo  "I'm a cat observe.".PHP_EOL;
    }

}